# Clean Vertical - a rotated desktop
# Written by: Maciej Delmanowski <harnir@post.pl>
#
# You can use folding to navigate this file

# ImagePath {{{1
SetEnv Icon-Theme "Default"
ImagePath $[FVWM_USERDIR]/icons/$[Icon-Theme]:$[FVWM_SYSTEMDIR]/icons/$[Icon-Theme]

# Includes and FVWM modules {{{1
Module FvwmCommandS

# Default FVWM-Crystal functions, initialization {{{2
Include components/desktop/FVWM-Crystal_Functions

# We need to "mask" some functions...
Include components/functions/Window-Buttons-Vertical
Include components/functions/Clear-FVWM-Settings
Include components/desktop/FVWM-Crystal_Preferences
Append preferences/Startup

# Settings for window placement and focus change after desktop switch {{{2
Include components/functions/Window-SetPlacementPolicy
Include components/functions/Window-Remember

# Preferred applications {{{2
Include components/functions/Screenshot-import
Include components/apps/XScreenSaver
Include components/apps/FvwmMiniConsole
Include components/apps/QuakeConsole

# Desktop & window bindings {{{2
Include components/bindings/Desktop-Basic
Include components/bindings/Window-Basic
Include components/bindings/Window-Border

# Keyboard bindings {{{2
Include components/desktop/Keyboard-Vertical
Include components/desktop/Numpad

# Use window thumbnails instead of simple icons on the desktop {{{2
Include components/desktop/Icon-Thumbnails

# Various styles {{{2
Include components/desktop/FVWM-Crystal_Styles
Include components/styles/CursorStyle-Border

# Desktop settings {{{1
EdgeScroll	0	0
EdgeResistance	0	0
HideGeometryWindow	Move, Raise
OpaqueMoveSize	100
EdgeThickness	1

EWMH-Desktop 3 3 3 3
EWMH-Panel-Right 60

# Applications generator and main menu{{{1
# fvwm-crystal.apps {{{2
PipeRead 'fvwm-crystal.apps --database=$[FVWM_SYSTEMDIR]/Applications --database=$[FVWM_USERDIR]/Applications --search-icons-in=$[FVWM_USERDIR]/icons/$[Icon-Theme]/32x32/apps:$[FVWM_SYSTEMDIR]/icons/$[Icon-Theme]/32x32/apps --default-file-icon=32x32/apps/default.png --default-dir-icon=32x32/apps/directory.png --min-submenu-length=5 --sort=prio --no-panel --check-execs'
# Main "diamond" menu {{{2
DestroyMenu /FVWM-Crystal
AddToMenu /FVWM-Crystal
+ '$[gt.Applications]' Popup /Applications
+ "" Nop
+ '$[gt.Music]' Popup /Music
+ '$[gt.Screensaver]' Popup /Screensaver
+ '$[gt.Screenshot]' Popup /Screenshot
+ "" Nop
+ '$[gt.Window decorations]' Popup /Window-Decorations
+ '$[gt.Colorsets]' Popup /Colorsets
+ '$[gt.Wallpaper]' Popup /Wallpaper
+ '$[gt.Preferences]' Popup /Preferences
+ "" Nop
+ '$[gt.Developer menu]' Popup /Developer
+ '$[gt.About FVWM-Crystal]' Include components/functions/About
+ '$[gt.Exit]' Popup /Exit

Mouse 1 R $[Mod0] Menu /FVWM-Crystal $[MenuPosition-BelowLeft]
# Pager {{{1
All (FvwmPager) Close
DestroyModuleConfig FvwmPager*

SetEnv Desk-Pages-X "1"
SetEnv Desk-Pages-Y "8"

PipeRead 'echo SetEnv FvwmPager-Width $((28*$[Desk-Pages-X])); echo SetEnv FvwmPager-Height $((24*$[Desk-Pages-Y]))'
*FvwmPager: Geometry -1-1
PipeRead 'echo DesktopSize $[Desk-Pages-X]x$[Desk-Pages-Y]'

*FvwmPager: MiniIcons
*FvwmPager: Font none
*FvwmPager: WindowBorderWidth 1
*FvwmPager: Window3DBorders
#*FvwmPager: NoSeparators
*FvwmPager: UseSkipList
*FvwmPager: Colorset * $[cs-panel-inactive]
*FvwmPager: HilightColorset * $[cs-panel-active]
*FvwmPager: WindowColorsets $[cs-panel-wininactive] $[cs-panel-winactive]

Module FvwmPager

# Change desktop pages using mouse wheel on pager
Mouse (FvwmPager) 4 W $[Mod0] GotoPage-Up
Mouse (FvwmPager) 5 W $[Mod0] GotoPage-Down

# Settings for icons on the desktop {{{1
Style * IconBox 1200x800+30-30, IconFill left bottom, IconGrid 30 30
Style * StickyIcon

# Settings for FvwmIdent {{{1
*FvwmIdent: Font "xft:Tahoma:pixelsize=12:Bold"
*FvwmIdent: Colorset $[cs-panel-active]

# Settings for FvwmForm {{{1
*FvwmFormDefault: Colorset $[cs-panel-inactive]
*FvwmFormDefault: ItemColorset $[cs-panel-active]
*FvwmFormDefault: Font "xft:Tahoma:pixelsize=13"
*FvwmFormDefault: InputFont "xft:Monospace:pixelsize=13"
*FvwmFormDefault: ButtonFont "xft:Tahoma:pixelsize=13:Bold"
*FvwmFormDefault: TimeoutFont "xft:Tahoma:pixelsize=13:Bo

# Settings of Trayer {{{1
AddToFunc ExitFunction I Exec exec killall trayer

AddToFunc StartFunction I Exec exec trayer \
--SetDockType false \
--widthtype request \
--heighttype pixel \
--height 24 \
--edge bottom \
--align right \
--transparent true \
--alpha $[TrayerAlpha] \
--tint $[TrayerTint] \
--margin 43 \
--distance 3


# ViM modeline {{{1
# vim:foldmethod=marker:foldenable:foldlevel=0
